const {Joi} = require('express-validation')

const title = Joi.string().required()
const cate_id = Joi.number().integer().min(1)
const content = Joi.string().required()


exports.addArticle = {
    body: Joi.object({
        title,
        cate_id,
        content,
    })
}